package org.gourpg.model.organization;

/**
 * 组织与人员关系配置实体
 */
public class OrgPersonRel {
    /**
     * 组织ID，组织的主键
     */
    private Integer orgId;

    /**
     * 用户id，用户的主键
     */
    private Integer personId;

    public OrgPersonRel() {
    }

    public Integer getOrgId() {
        return this.orgId;
    }

    public Integer getPersonId() {
        return this.personId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    public void setPersonId(Integer personId) {
        this.personId = personId;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof OrgPersonRel)) return false;
        final OrgPersonRel other = (OrgPersonRel) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$orgId = this.getOrgId();
        final Object other$orgId = other.getOrgId();
        if (this$orgId == null ? other$orgId != null : !this$orgId.equals(other$orgId)) return false;
        final Object this$personId = this.getPersonId();
        final Object other$personId = other.getPersonId();
        if (this$personId == null ? other$personId != null : !this$personId.equals(other$personId)) return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof OrgPersonRel;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $orgId = this.getOrgId();
        result = result * PRIME + ($orgId == null ? 43 : $orgId.hashCode());
        final Object $personId = this.getPersonId();
        result = result * PRIME + ($personId == null ? 43 : $personId.hashCode());
        return result;
    }

    public String toString() {
        return "OrgPersonRel(orgId=" + this.getOrgId() + ", personId=" + this.getPersonId() + ")";
    }
}
